import { useMount, useRequest } from 'ahooks'
import './WeeklyReports.scss'
import { Http } from '../../../Api'

export const WeeklyReports = () => {
    const { runAsync: getData } = useRequest(Http, {
        manual: true,
        onSuccess: res => {
            console.log(res)
        },
    })

    useMount(() => {
        getData({ url: 'getWeeklyReportsStatistics', data: { pageInde: 1, pageSize: 10 } }).then(res => {
            console.log(res)
        })
    })

    return <div className="WeeklyReports">周报列表</div>
}
